package com.mike.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description
 * @Date 2021/11/29 17:53
 * @Created by mike
 */
// @FeignClient表明当前类是一个Feign客户端，value指定该客户端要请求的服务名称（登记到注册中心上的服务提供者的服务名称）
@FeignClient(value = "spring-cloud-service-email",path = "/email")
public interface EmailServiceFeignClient {

    @GetMapping("/{code}/{mail}")
    Boolean sendMail(@PathVariable("code") String code, @PathVariable("mail") String mail);

}
